package com.syni.mdd.sjb.common.component.utils.feign.service.mdd.sjb.common.datatreasure;

import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @className DxshApiNewsRestService
 * @description TOO
 * @Author cfx
 * @DATE 2020/5/15 15:35
 * @VERSION 1.0
 **/
@FeignClient(value = Constants.MDD_DXSH_APP,path = Constants.MDD_DXSH_APP_CONTEXT_PATH)
@RequestMapping("/apiAppIndustry")
public interface DxshApiIndustryRestService {

    @GetMapping("/getAllIndustry")
    RpcResponseVo getAllIndustry();

    @GetMapping("/getBusinessTypeByChooseIndustry")
    RpcResponseVo getBusinessTypeByChooseIndustry(@RequestParam("userId") Integer userId);

    @GetMapping("getUserChooseIndustry")
    Map<String,Object> getUserChooseIndustry(@RequestParam("userId") Integer userId);


}
